package com.study.messagFormat;

import com.exception.MyException;

public class Test1 {
    public static void main(String[] args) {
        try {
            throw new MyException("姓名：{0}，年龄：{1}，年龄不足18","张三",11);
        }
        catch (Exception e){
            e.printStackTrace();
        }
        throw new MyException("姓名：{0}，年龄：{1}，年龄不足18");
    }
}
